<?php

////////////////   Default page ///////////////////
header('Content-type: text/html; charset=utf-8');


require_once( '/home/azzdlsz/public_html/tuttururuz.biz/iddaa-portal/SolrPhpClient/Apache/Solr/Service.php' );
$solr = new Apache_Solr_Service( 'localhost', '8080', '/solr' );




$offset = 0; $limit = 10;
// 
$query = $_GET['id'];





$response = $solr->search( $query, $offset, $limit );


if ( $response->response->numFound > 0 ) {
        foreach ( $response->response->docs as $doc ) {
                echo "$doc->id $doc->name   $doc->type  <br />";
        }
} else {
        echo 'sonuc bulunamadi';
}


?>
